package com.example.day1_kotlin;

public class UserJava {
    private final String username;
    private String password;
    private final int age;

    public UserJava(String username, String password, int age) {
        this.username = username;
        this.password = password;
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public boolean isAdult(){
        return age>=18;
    }
}
